package org.test.controller.frontend;

import org.easyspring.core.annotation.Autowired;
import org.easyspring.core.annotation.Controller;
import org.test.entity.dto.MainPageInfoDto;
import org.test.entity.dto.Result;
import org.test.service.combine.HeadAndCategoryCombineService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; /**
 * Created by Hy on 2021/7/24.
 */
@Controller
public class MainPageController {
    @Autowired(value = "HeadAndCategoryCombineServiceImpl")
    public HeadAndCategoryCombineService headAndCategoryCombineService;
    public Result<MainPageInfoDto> getMainPageInfo(HttpServletRequest req, HttpServletResponse resp) {
        return headAndCategoryCombineService.getMainPageInfo();
    }
}
